import request from '@/utils/request'
import api from '@/api/api'

export function sendEmailApi(data) {
    return request.post(api.sendEmail, data, 1);
}
export function showEmailApi(data) {
    return request.get(api.showEmail, data,1);
}

export function uploadApi(data) {
    console.log("111")
    return request.upload(api.upload, data);
}

export function getFileListApi(data) {
    return request.get(api.getFileList, data,1);
}

export function deleteFileApi(data) {
    return request.post(api.deleteFile, data,1);
}

export function receivedByPOP3Api(data) {
    return request.post(api.receivedByPOP3, data,1);
}

export function downloadAttachmentApi(data) {
    return request.download(api.downloadAttachment, data,1);
}
export function setReceiveProtocolApi(data) {
    return request.post(api.setReceiveProtocol, data,1);
}
export function getReceiveProtocolApi(data) {
    return request.get(api.getReceiveProtocol, data,1);
}
export function receivedByIMAPApi(data) {
    return request.post(api.receivedByIMAP, data,1);
}
export function updateEmailStateApi(data) {
    return request.post(api.updateEmailState, data,1);
}

export function getDeletedApi(data) {
    return request.post(api.getDeleted, data,1);
}